<?php

namespace FortendBundle\Controller;

use BaseBundle\Controller\BaseController;

class WxIndexController extends BaseController
{
    public function wxIndexAction()
    {
        $conn = $this->get('database_connection');
        $data['banner_list'] = $conn->fetchAll("SELECT * FROM banner");
        $data['article_type'] = $conn->fetchAll("SELECT * FROM article_classify");

        return $this->render('@Fortend/Wx/index.html.twig', array('data'=>$data));
    }

    public function wxReserveAction()
    {
        return $this->render('@Fortend/Wx/reserve.html.twig');
    }
}